package cn.nexd.collector.bean;

import java.util.Arrays;

/**
 * Created by codngfish on 16/5/6.
 */
public class BeaconScannerResult {
    private String beaconName;// beacon 名称
    private String beaconAddress;// mac address
    private long startTimestamp;//信号第一次扫描时间
    private long endTimestamp;//信号最后一次扫描时间
    private float rssi;// 信号强度,加权平均值
    private float startRssi;//第一次采集到的信号强度
    private float endRssi;// 最后一次采集到的信号强度
    //    private Map<Long, Integer> rssiLog;//所有的 RSSI 信号强度记录,时间戳---信号强度
    private String UUID;
    private int Major;
    private int Minor;

    private long timestamp;
    private byte[] mScanRecord;

    public BeaconScannerResult() {

    }


    public String getBeaconName() {
        return beaconName;
    }

    public void setBeaconName(String beaconName) {
        this.beaconName = beaconName;
    }

    public String getBeaconAddress() {
        return beaconAddress;
    }

    public void setBeaconAddress(String beaconAddress) {
        this.beaconAddress = beaconAddress;
    }

    public long getStartTimestamp() {
        return startTimestamp;
    }

    public void setStartTimestamp(long startTimestamp) {
        this.startTimestamp = startTimestamp;
    }

    public long getEndTimestamp() {
        return endTimestamp;
    }

    public void setEndTimestamp(long endTimestamp) {
        this.endTimestamp = endTimestamp;
    }

    public float getRssi() {
        return rssi;
    }

    public void setRssi(float rssi) {
        this.rssi = rssi;
    }

    public float getStartRssi() {
        return startRssi;
    }

    public void setStartRssi(float startRssi) {
        this.startRssi = startRssi;
    }

    public float getEndRssi() {
        return endRssi;
    }

    public void setEndRssi(float endRssi) {
        this.endRssi = endRssi;
    }
    //
    //    public Map<Long, Integer> getRssiLog() {
    //        return rssiLog;
    //    }
    //
    //    public void setRssiLog(Map<Long, Integer> rssiLog) {
    //        this.rssiLog = rssiLog;
    //    }

    public String getUUID() {
        return UUID;
    }

    public void setUUID(String UUID) {
        this.UUID = UUID;
    }

    public int getMajor() {
        return Major;
    }

    public void setMajor(int major) {
        Major = major;
    }

    public int getMinor() {
        return Minor;
    }

    public void setMinor(int minor) {
        Minor = minor;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public byte[] getmScanRecord() {
        return mScanRecord;
    }

    public void setmScanRecord(byte[] mScanRecord) {
        this.mScanRecord = mScanRecord;
    }

    @Override
    public String toString() {
        return "BeaconScannerResult{" +
                "beaconName='" + beaconName + '\'' +
                ", beaconAddress='" + beaconAddress + '\'' +
                ", startTimestamp=" + startTimestamp +
                ", endTimestamp=" + endTimestamp +
                ", rssi=" + rssi +
                ", startRssi=" + startRssi +
                ", endRssi=" + endRssi +
                ", UUID='" + UUID + '\'' +
                ", Major=" + Major +
                ", Minor=" + Minor +
                ", timestamp=" + timestamp +
                ", mScanRecord=" + Arrays.toString(mScanRecord) +
                '}';
    }
}